package course13;

public class Mistake {
    public static void main(String[] args) {
        //String[] students = {"lilei", "hanmeimei", "luck"};
       // System.out.println(students[3]);

        try{
            String[] students = {"lilei", "haimeimei", "luck"};
            System.out.println(students[4]);
        }

        catch (Exception e) { 
            System.out.println("Exception thrown: " + e);
            System.out.println("数组越界啦");
            System.out.println("请重新输入正确的数组哈");
        }
    }
}
